<div id="imaginarium_small_<?php echo $imaginarium->getId() ?>" 
     class="small-item-container">
    
    <div id="imaginarium_small__<?php echo $imaginarium->getId() ?>_title" class="small-item-title">
        <?php echo image_tag('imaginarium-32x32'); ?> <?php echo $imaginarium->getName() ?>
    </div>
    <br/>
    <div id="imaginarium_small_<?php echo $imaginarium->getId() ?>_content" class="small-item-content">

        <!-- CHARACTERS -->
        <div class="small-item-section">
            <table>
                <tr>                    
                    <td><?php echo image_tag('characters-32x32'); ?> Characters </td>
                    <td style="width: 150px; text-align: right;"><a href="#" onclick="return false;"><?php echo image_tag('add'); ?></img></td>
                </tr>
            </table>
        <?php 
        if ( count($imaginarium->getCharacters()) == 0 ) { ?>
            <div style="padding-left: 50px;"><?php echo image_tag('face-sad-32x32'); ?> <i>You haven't imagined any character.</i></div>
        <?php } else { ?>
            
        <?php foreach($imaginarium->getCharacters() as $ct ) { ?>
            <span class="iconic-item">
                <?php echo $ct->getCharacter()->getNickname() ?>
                <div style="font-size: smaller; font-weight: normal;"><?php echo $ct->getCharacter()->getDescription() ?></div>
            </span>
            <?php 
            } ?>
        <?php }?>
        </div>

        <!-- DIALOGS -->
        <div class="small-item-section">
            <table>
                <tr>                    
                    <td><?php echo image_tag('dialogs-32x32'); ?> Dialogs </td>
                    <td style="width: 150px; text-align: right;"><a href="#" onclick="return false;"><?php echo image_tag('add'); ?></img></td>
                </tr>
            </table>
        <?php 
        if ( count($imaginarium->getDialogs()) == 0 ) { ?>
            <div style="padding-left: 50px;"><?php echo image_tag('face-sad-32x32'); ?> <i>You haven't imagined any dialog.</i></div>
        <?php } else { ?>
            
        <?php foreach($imaginarium->getDialogs() as $dialog ) { ?>
            <span class="iconic-item">
                <?php echo $dialog->getName() ?>                
            </span>
            <?php 
            } ?>
        <?php }?>
        </div>
        
    </div>
    
</div>
